﻿using JE.MicroMVVM.Example.Common;
using MicroMVVM;
using MicroMVVM.Interfaces;
using MicroMVVM.Navigation;
using Windows.UI.Xaml.Controls;

namespace JE.MicroMVVM.Example.ViewModels
{
    [ExportViewModel("ThirdPageViewModel")]
    public class ThirdPageViewModel : BindableBase, INavigation
    {
        private TestOneViewModel _viewModel;

        public TestOneViewModel ViewModel
        {
            get { return _viewModel; }
            set { SetProperty(ref _viewModel, value); }
        }

        public Frame Current { get; set; }

        public ThirdPageViewModel()
        {
        }

        [ImportingConstructor]
        public ThirdPageViewModel(IVisualStateManager visualStateManager)
        {
            ViewModel = new TestOneViewModel(visualStateManager);
        }

        public void OnNavigating()
        {
            var s = string.Empty;
        }

        public void OnNavigated(object parameter)
        {
            var s = string.Empty;
        }
    }
}